//
//  myTableViewCell.m
//  BuffetNews
//
//  Created by weidawei on 14-10-28.
//  Copyright (c) 2014年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "myTableViewCell.h"

@implementation myTableViewCell

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // Initialization code
        
        self.iamge1 = [[UIImageView alloc] init];
        [self.contentView addSubview:self.iamge1];
        self.iamge2 = [[UIImageView alloc] init];
        self.iamge3 = [[UIImageView alloc] init];
        [self.contentView addSubview:self.iamge2];
        [self.contentView addSubview:self.iamge3];
        [self.iamge1 release];
        [self.iamge2 release];
        [self.iamge3 release];
    }
    return self;
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    CGFloat width = self.contentView.frame.size.width;
    CGFloat height = self.contentView.frame.size.height;
    self.iamge1.frame = CGRectMake(0, 5, width - 5, height / 2);
    self.iamge2.frame = CGRectMake(0, height / 2, width / 2 - 5, height / 2);
    self.iamge3.frame = CGRectMake(width / 2, height / 2, width / 2 - 5 , height / 2);
    
    
}

- (void)dealloc
{
    [_iamge1 release];
    [_iamge2 release];
    [_iamge3 release];
    [super dealloc];
}

- (void)awakeFromNib
{
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
